package com.ocom.common.entity.mjrecode;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("attendance")
public class MjAttendance implements Serializable {

  
    private static final long serialVersionUID = -9082465523514331606L;
 
    @TableId(type = IdType.AUTO)
    private Long id;

  
    private Long comId;
    @JsonProperty("pId")

    private Long pId;
    @JsonProperty("pCode")
    private String pCode;
    @JsonProperty("pName")
    private String pName;
    private Integer deptId;
    private String deptName;
    private Long groupNo;
    private String groupName;
    private Long roleId;
    private String roleName;
    private Integer timeType;
    private Integer attendanceType;
    private Integer zoneNo;
    private String zoneName;
    private Integer attendanceResult;
    @TableField(exist = false)
    private String attendanceResultName;
    //预计地点，按照进出时间，学生当前应该所处的位置。0:未知，1:学校，2:宿舍，3:离校
    private Integer expectPoint;
    private Integer delayDuration;
    //数据来源 1门禁考勤、2自动补录、3手工补录
    private Integer dataSource;
    private Date attendanceDate;
    private Date attendanceDateTime;
    private Long recordId;
    private String remark;

    private String monthValue;

    private Integer regionStatus;


    private Integer createUser;
    private Integer updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
